package com.jf3q.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jf3q.admin.service.BannerService;
import com.jf3q.common.domain.EduBanner;
import com.jf3q.common.mapper.EduBannerMapper;
import org.springframework.stereotype.Service;

@Service
public class BannerServiceImpl extends ServiceImpl<EduBannerMapper, EduBanner> implements BannerService   {
    @Override
    public Page getPage(Integer pageNum, Integer pageSize) {
        Page<EduBanner> page = new Page<>(pageNum, pageSize);
        return baseMapper.selectPage(page,new LambdaQueryWrapper<EduBanner>().orderByAsc(EduBanner::getSort));

    }
}
